<?php
class UnhandledException extends ServerException
{
	private $type = "";
	private $source = "";
	protected $code  = 0;

	const TYPE_ERROR = "[Error%1]";
	const TYPE_WARNING = "[Warning]";
	const TYPE_NOTICE = "[Notice]";

	public function __construct($name, $message = "", $code = 0, $source = "", $line = 0, $type = TYPE_ERROR)
	{
		parent::__construct();

		$this->message = $message;
		$this->code    = $code;
		$this->line    = $line;
		$this->type    = ($type != TYPE_ERROR) ? $type : self::TYPE_ERROR;
		$this->source  = $source;
		$this->file    = $source;
	}
}
?>
